package com.example.jyjava.dao;

import com.example.jyjava.bean.Collect;
import com.example.jyjava.bean.Shop;
import com.example.jyjava.bean.Tab;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShopDao {
    public List<Shop> getAllShop(@Param("shopType") String shopType);

    public List<Shop> getShopSign(@Param("title") String title);

    public Shop getShopQx(Integer id);

    public int addShop(Shop shop);

    public int updateShopBuy(Integer id);

    public int updateShopLook(Integer id);

    public List<Shop> getAllShopT(@Param("userId") String userId);

    public int updateShopSold(@Param("id") Integer id,@Param("shopSold") boolean shopSold);

    public int deleteShopSold(@Param("id") Integer id);

    public int xianShopBuy(Integer id);


    public List<Shop> getShopList(@Param("title")String title, @Param("pageStart")int PageStart, @Param("pageSize")int pageSize);

    public int getShopCounts(@Param("title")String title);

    public List<Shop> getShopType(@Param("title")String title,@Param("shopType") String shopType);

    public List<Shop> getShopUser(@Param("title")String title, @Param("pageStart")int PageStart, @Param("pageSize")int pageSize,@Param("userId") Integer userId);

    public int getShopUserC(@Param("title")String title,@Param("userId") Integer userId);

    public int getShopNum(@Param("userId") Integer userId);
}
